package com.sdemo.common.globals;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Globals {

	
	/**
     *   全局用户信息session key
     * */
	public static Long SUPSER_ADMIN=1L;
	
	
	public static String redis_userauth_key="redis_userauth_key";
	
	public static String redis_userid_key = "userId_";
	
	
	public static String queue_usermsg="queue_usermsg";
	
	public static String VERIFYCODE="_code";
	
    /**
     * 是否开启定时任务
     * */
    @Value("${demo.parms.taskoff:false}")
    public boolean taskoff;
    
    @Value("${demo.parms.key:ssssss}")
    public String key;


    public boolean isTaskoff() {
        return taskoff;
    }

    public void setTaskoff(boolean taskoff) {
        this.taskoff = taskoff;
    }

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
	
    
}
